package com.molichuxing.services.infrastructure.dto.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.OrderStatusFlowModifiedTypeEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
public class OrderStatusFlowDto extends ResponseRootDto {
	private static final long serialVersionUID = -7600825110734323019L;

	private Integer id;

	/**
	 * 订单号
	 */
	private Long orderCode;

	/**
	 * 订单修改人id(系统修改则填写0)
	 */
	private Integer orderUserId;

	/**
	 * 订单修改人名称(系统修改则填写system)
	 */
	private String orderUserName;

	/**
	 * 订单修改人员类型(1：C端用户，2：B端用户)
	 */
	private OrderStatusFlowModifiedTypeEnum orderModifiedType;

	/**
	 * 订单修改时间
	 */
	private LocalDateTime orderModifiedTime;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private LocalDateTime gmtCreate;

	/**
	 * 更新时间
	 */
	private LocalDateTime gmtModified;
	
	public void setOrderModifiedType(Integer orderModifiedType) {
		this.orderModifiedType = orderModifiedType == null ? null :OrderStatusFlowModifiedTypeEnum.getEnum(orderModifiedType);
	}
	
	public void setOrderStatus(Integer orderStatus) {
	}
}
